# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libxkbfile
pkgver=1.1.2
pkgrel=2
pkgdesc="X11 keyboard file manipulation library"
url="https://xorg.freedesktop.org/"
arch="all"
license="MIT"
makedepends="libx11-dev util-macros"
subpackages="$pkgname-dev"
source="https://www.x.org/releases/individual/lib/libxkbfile-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -D -m644 COPYING \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="
0639fad7b64b36a85f8d24cdd40085e0ec18d7a671793b8b5c26449e9cc5a84c37117e7757fb1238ac353044935dd00013e42166de5af9dec428e873a47e598d  libxkbfile-1.1.2.tar.xz
"
